package com.sugar.real.estate.module.business.controller.admin.openedcity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 已开通城市新增/修改 Request VO")
@Data
public class OpenedCitySaveReqVO {

    @Schema(description = "城市ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31760")
    private Long id;

    @Schema(description = "城市名称（中文）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "城市名称（中文）不能为空")
    private String nameZhCn;

    @Schema(description = "城市名称（英文）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "城市名称（英文）不能为空")
    private String nameEnUs;

    @Schema(description = "父级ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19179")
    @NotNull(message = "父级ID不能为空")
    private Long parentId;

    @Schema(description = "类型（0国内 1国外）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型（0国内 1国外）不能为空")
    private Boolean type;

}